﻿using DevExpress.ExpressApp;
using DevExpress.ExpressApp.DC;
using DevExpress.Persistent.Base;
using EasyXaf.EntityDesigner.BusinessObjects.Entities.EntityViews;

namespace EasyXaf.EntityDesigner.Editors.DetailViewEditors;

/// <summary>
/// 详情视图对象
/// </summary>
[DomainComponent]
[XafDisplayName("详情视图")]
public class DetailViewObject : NonPersistentLiteObject
{
    /// <summary>
    /// 名称
    /// </summary>
    [XafDisplayName("名称")]
    [VisibleInDetailView(false)]
    public string Name => View.DisplayName;

    /// <summary>
    /// 视图
    /// </summary>
    [XafDisplayName("视图")]
    [VisibleInListView(false)]
    [EditorAlias("DetailViewEditor")]
    public EntityView View { get; set; }
}
